.pendulum-canvas-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pendulum-canvas-card .ant-card-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.canvas-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 600px;
}

.timer-display {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #4fc3f7;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.timer-value {
  color: #ffffff;
  font-family: 'Courier New', monospace;
}

.pendulum-canvas {
  flex: 1;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(45deg, rgba(20, 30, 80, 0.4), rgba(10, 20, 50, 0.8));
  cursor: crosshair;
}

.control-buttons {
  margin-top: 16px;
  text-align: center;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.status-dot.running {
  background-color: #4caf50;
  box-shadow: 0 0 8px #4caf50;
}

.status-dot.not-running {
  background-color: #f44336;
  box-shadow: 0 0 8px #f44336;
}

.status-text {
  color: #ffffff;
  font-weight: 600;
}

@keyframes pulse {
  0% { 
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); 
  }
  70% { 
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); 
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); 
  }
}

.quick-instructions {
  margin-top: 16px;
  background: rgba(15, 20, 60, 0.6);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(79, 195, 247, 0.3);
}

.instructions-title {
  font-size: 14px;
  font-weight: 600;
  color: #4fc3f7;
  margin-bottom: 12px;
  text-align: center;
}

.instructions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.instruction-item {
  font-size: 12px;
  color: #b0bec5;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-left: 3px solid #4fc3f7;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .canvas-container {
    min-height: 400px;
  }
  
  .timer-display {
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .instructions-list {
    grid-template-columns: 1fr;
  }
  
  .instruction-item {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .canvas-container {
    min-height: 300px;
  }
  
  .timer-display {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  .quick-instructions {
    padding: 12px;
  }
  
  .control-buttons .ant-btn {
    font-size: 12px;
    height: 32px;
  }
}
